package com.kotlin.zds.base

import android.os.Bundle
import com.xuexiang.xui.utils.WidgetUtils
import com.xuexiang.xui.widget.dialog.LoadingDialog
import com.zds.support.base.SupportBaseFragment

/**
 * Author: zds
 * Date: 2022/6/10 20:00
 * Description:
 * Version: v1.0
 */
abstract class BaseFragment : SupportBaseFragment() {
    protected var mDialog: LoadingDialog?=null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mDialog = WidgetUtils.getLoadingDialog(context)
    }

    fun showDialog(){
        mDialog?.show()
    }
    fun dismissDialog(){
        mDialog
    }
}